<!DOCTYPE html>
<html lang="">
  <head>
    <meta charset="utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <title><%= htmlWebpackPlugin.options.title %></title>
    <!-- 注入 cdn js 脚本 -->
    <% htmlWebpackPlugin.options.js.forEach(item => { %>
    <script defer="defer" src="<%= item %>"></script>
    <% }) %>
    <!-- 注入 cdn css 样式 -->
    <% htmlWebpackPlugin.options.css.forEach(item => { %>
    <link rel="stylesheet" href="<%= item %>" />
    <% }) %>
  </head>
  <body>
    <noscript>
      <strong>
        We're sorry but <%= htmlWebpackPlugin.options.title %> doesn't work
        properly without JavaScript enabled. Please enable it to continue.
      </strong>
    </noscript>
    <div id="app"></div>
    <!-- built files will be auto injected -->
  </body>
</html>
